
<div>
  <div class="pull-right">
    <%= link_to "新建规格", new_admin_spec_path, class: "btn btn-primary" %>
  </div>

  <h1>
    规格(<%= @specs.total_entries %>)
  </h1>
</div>

<div>
  <table class="table table-striped">
    <tr>
      <th>ID</th>
      <th>名称</th>
      <th></th>
    </tr>

    <% @specs.each do |spec| %>
      <tr>
        <td><%= spec.id %></td>
        <td><%= spec.title %></td>
        <td align="right">
          <%= link_to "编辑", edit_admin_spec_path(spec) %>
        </td>
      </tr>
    <% end -%>
  </table>

  <%= will_paginate @specs %>
</div>


